<!DOCTYPE html>
<html lang="ar">
<head>
    <title>التحويلات</title>
	<?php
	 define('LAST_CAPITRE_ID',19);
	 define('LAST_ARTICLE_CODE',3);
	?>

	<?php $this->load->helper('url');?>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta charset="utf-8">

<!---------------------for autocomplete--------------->
	<script type="text/javascript" src="<?php echo base_url('assets/js/jquery-1.11.0.min.js');?>" ></script>
	<script type="text/javascript" src="<?php echo base_url('assets/js/jquery-ui-1.10.4/js/jquery-ui-1.10.4.min.js');?>" ></script>
	<link href="<?php echo base_url("assets/css/jquery-ui.css")?>" rel="stylesheet" type="text/css" />
	<!------------------------------------------------------>
<!---------------------for form css ----------------------->
	<link href="<?php echo base_url("assets/css/pure.css")?>" rel="stylesheet" type="text/css" />
	
<script type="text/javascript" src="<?php echo base_url('assets/js/jquery.tablesorter.min.js');?>" ></script>
 <link href="<?php echo base_url("assets/css/botton.css")?>" rel="stylesheet" type="text/css" />
	
</head>


<?php include_once('header.php');

		//$r=$les_convention;
		 $this->load->library('session');
        $num_ar=$this->session->userdata('data_charticle'); //access it
        $chcl=$num_ar;
 ?>
 

<form id="convention_form" class="pure-form pure-form-stacked"  method="POST" action="<?php echo base_url('/etat_financier_ctr/');?>">
    
        <legend>التحويل رقم  : <?php echo('<strong>'.$result[0]->numero.'</strong>');?></legend>

        <div class="pure-g">
		 <div class="pure-u-1 pure-u-md-1-3" style="width: 90%">
		  
		 </div>
            <div class="pure-u-1 pure-u-md-1-3" style="width: 40%">
                <label for="fournisseur">المادة المصدر </label>
				<label  style="display: inline-block" class="ltr"><?php echo($result[0]->art_source);?></label>
            </div>
			 <div class="pure-u-1 pure-u-md-1-3" style="width: 40%">
                <label for="fournisseur">رقم المادة المصدر </label>
				<label  style="display: inline-block" class="ltr"><?php echo($result[0]->source_art_code);?></label>
            </div>
			 <div class="pure-u-1 pure-u-md-1-3" style="width: 40%">
                <label for="fournisseur">المادة الوجهة </label>
				<label  style="display: inline-block" class="ltr"><?php echo($result[0]->art_destination); ?></label>
            </div>
			 <div class="pure-u-1 pure-u-md-1-3" style="width: 40%">
                <label for="fournisseur">رقم المادة الوجهة </label>
				<label  style="display: inline-block" class="ltr"><?php echo($result[0]->dest_code_art);?></label>
            </div>
			<div class="pure-u-1 pure-u-md-1-3" style="width: 40%">
                <label for="fournisseur">المبلغ</label>
				<label  style="display: inline-block" class="ltr"><?php echo(number_format($result[0]->montant, 2, ',', ' '));?></label>
            </div>
		
		 
			
			 </div>
			     <?php
 
  $goupe=$this->session->userdata('user_group'); //access it
  $id=$result[0]->id_tranfert;
if($goupe=="admin"){
echo ('<a href="'.base_url('/etat_financier_ctr/transfert/').'" class="pure-button pure-button-primary" >خروج</a>
     <a href="'.base_url("/etat_financier_ctr/supprimer_transfert/").'/'.$id.'/'.$result[0]->id_art_source.'/'.$result[0]->id_art_dest.'/'.$result[0]->montant.'" title="تغيير تقسيم الميزانية الابتدائية" class="pure-button pure-button-primary" >حذف</a>
<a href="'.base_url("/etat_financier_ctr/imprimer_transfert/").'/'.$id.'" title="تغيير تقسيم الميزانية الابتدائية" class="pure-button pure-button-primary" >طباعة</a>

	  ');


	
}else{
	echo ('<a href="#" class="pure-button-disabled pure-button-primary">حذف</a>
	 <a href="'.base_url('/budget_ctr/load/').'" class="pure-button pure-button-primary" >خروج</a>');
}
?>
	
		</form>


  <script>
 $(document).ready(function() 
    { 
        $("#myTable").tablesorter(); 
    } 
); 
 </script>  
  <script>
$(function() {
	var liste_fourniss = <?php echo json_encode($liste_des_fournisseurs); ?>;
	$( "#nom" ).autocomplete({source: liste_fourniss});
	} 
); 
</script> 

</html>